home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / opus / v5 / syspic-4.00 / install syspic < prev    next >
Text File  |  1996-09-22  |  2KB  |  85 lines

  1.  
  2. ; SysPic Installer Script
  3. ; $VER: Install SysPic 4.0 (23.09.96)
  4. ; written by Grzegorz Calkowski
  5.  
  6. ; =======================================================================
  7.  
  8. ; Strings
  9.  
  10. (set #kick39 "SysPic requires at least Kickstart 3.0 (v39) !")
  11. (set #syspicdir "Select drawer for SysPic executable")
  12. (set #closepicdir "Select drawer for ClosePic")
  13. (set #cmdsdir "Select drawer for additional commands")
  14. (set #selcmds "Select what commands to install")
  15. (set #ptreplay "Installing ptreplay.library")
  16. (set #messy "\nSysPic has been installed.\n\nNow you have to edit startup-sequence by hand -\ninsert 'SysPic <filename> <options>' command\nright after 'SetPatch' command.\n\nConsult the documentation for details.")
  17.  
  18. ; =======================================================================
  19.  
  20. (if (< (/ (getversion) 65536) 39)
  21.     (abort #kick39)
  22. )
  23.  
  24. (set cpu (database "cpu"))
  25. (set prgver "SysPic")
  26. (set picsdir "")
  27.  
  28. ; Determine SysPic version
  29.  
  30. (if (NOT (= cpu "68000"))
  31.     (set prgver "SysPic.020")
  32. )
  33.  
  34. (if (exists 'C2:' (noreq))
  35.     (set destdir "C2:")
  36.     (set destdir "C:")
  37. )
  38.  
  39. (copyfiles
  40.     (source (cat "C/" prgver))
  41.     (dest (set destdir (askdir
  42.         (help @askdir-help)
  43.         (default destdir)
  44.         (prompt #syspicdir)
  45.     )))
  46.     (newname "SysPic")
  47.     (help @copyfiles-help)
  48. )
  49.  
  50. (set @default-dest destdir)
  51.  
  52. (copyfiles
  53.     (source "WBStartup/ClosePic")
  54.     (dest (askdir
  55.         (prompt #closepicdir)
  56.         (help @askdir-help)
  57.         (default 'SYS:WBStartup')
  58.     ))
  59.     (infos)
  60.     (help @copyfiles-help)
  61. )
  62.  
  63. (copyfiles
  64.  (prompt #selcmds)
  65.     (source "C/")
  66.  (pattern "~S#?")
  67.     (dest (set cmdsdir (askdir
  68.         (help @askdir-help)
  69.         (default destdir)
  70.         (prompt #cmdsdir)
  71.     )))
  72.     (confirm)
  73.     (help @copyfiles-help)
  74. )
  75.  
  76. (copylib
  77.     (prompt #ptreplay)
  78.     (source "Libs/ptreplay.library")
  79.     (dest "LIBS:")
  80.     (help @copylib-help)
  81.     (confirm)
  82. )
  83.  
  84. (message #messy)
  85.